package com.topvision.opencv_test;

import android.content.Context;
import android.widget.Toast;

/**
 * Author: lucy
 * Comment: //TODO
 * Date: 2017-10-11 11:41
 */

public class ToastUtils {
    private static Toast toast;

    public static void showToast(Context context, String str) {
        if (toast == null) {
            toast = Toast.makeText(context, str, Toast.LENGTH_SHORT);
        }
        toast.setText(str);
        toast.show();
    }
}
